import Vue from 'vue'
import Vuex from 'vuex'
import Login from './login'
import Config from './config'

Vue.use(Vuex)

let loginState = Login.state
let loginMutations = Login.mutations

const state = {
  login: loginState,
  config: Config
}

const mutations = {
  ...loginMutations
}

const store = new Vuex.Store({
  state,
  mutations
})

export default store
